<div class="modal-header">
  <h4 class="modal-title">添加设备</h4>
</div>
<div class="modal-body">
  <div class="container-fluid form-horizontal ">
<div class="col-xs-12 " >
  <div class="panel-body">
    <div class="container-fluid" style="padding: 0;">
      <div class="col-xs-12 col-md-12" style="padding: 0;">
        <div class="form-group">
          <label class="col-sm-3 col-xs-12 control-label">景点名称</label>
          <div class="col-sm-9 col-xs-12">
            <input type="text" class="form-control" placeholder="设备名称" ng-model="obj.spot_name">
          </div>
        </div>
        
        <div class="form-group">
          <label class="col-sm-3 col-xs-12 control-label">入口设备编号</label>
          <div class="col-sm-8">

              <select class="form-control" ng-model="obj.start_code" >
                  <option value="">请选择一个设备</option>
                  <option ng-value="info.eq_code" ng-repeat="info in steq">{{info.eq_name}}</option>
              </select>

          </div>
        </div>
        
        <div class="form-group">
          <label class="col-sm-3 col-xs-12 control-label">出口设备编号</label>
          <div class="col-sm-8">

              <select class="form-control" ng-model="obj.end_code" >
                  <option value="">请选择一个设备</option>
                  <option ng-value="info.eq_code" ng-repeat="info in edeq">{{info.eq_name}}</option>
              </select>

          </div>
        </div>
        


      </div>
    </div>
  </div>
</div>
</div>
</div>
<div class="modal-footer">
  <button class="btn btn-primary" type="button" ng-click="ok()" ng-show="flag==0">OK</button>
  <button class="btn btn-primary" type="button" ng-click="update()" ng-show="flag==1">ok</button>
  <button class="btn btn-warning" type="button" ng-click="cancel()">返回</button>
</div>


